]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
recorder: Call cairo_surface_mark_dirty on the cursor surface
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 24 Jan 2011 21:56:23 +0000 (22:56 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 24 Jan 2011 22:03:59 +0000 (23:03 +0100)
Cairo surfaces have to be marked dirty after directly accessing
them.

This fixes the problem of the cursor not being in the recordings.

src/shell-recorder.c

index a1c626b41f82f231c16e31b3416a87324ada6e89..6f3a6ea37948951f05be227a841bd57fbcab7975 100644 (file)
@@ -412,6 +412,8 @@ recorder_fetch_cursor_image (ShellRecorder *recorder)
   for (i = 0; i < cursor_image->height; i++)
     for (j = 0; j < cursor_image->width; j++)
       *(guint32 *)(data + i * stride + 4 * j) = cursor_image->pixels[i * cursor_image->width + j];
+
+  cairo_surface_mark_dirty (recorder->cursor_image);
 }
 
 /* Overlay the cursor image on the frame. We draw the cursor image